#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include <QWidget>
#include <QFileDialog>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QFile>
#include <QIODevice>
#include <QTextStream>
#include <QTextEdit>
#include <QTextBrowser>
#include <QDataStream>
#include <QString>
#include <QProgressBar>
#include <QtSql>
#include <QMessageBox>
#include <QList>
#include <QClipboard>
#include <QProcess>
#include <gsl/gsl_const_mksa.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include "classes.h"
#include "cubaturs.h"
#include "ui_mainwindow.h"

class MainWindowImpl : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
public:
	MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
private:
	QSqlTableModel *waveSqlModel;
	QMap<int,QString> Base;
        Cubaturs ft;
        int area;   //Area of radiator
        int method; //Method of calculation
        int param;  //Fixed parameter
        double *q1,*q2,*q3,*par,**dist;
private slots:
        bool save();
	void copyRecord();
	void copyDatabase();
	void clearDatabase();
        void about();
        void initCalc();
	void on_but_diag_clicked();
        void on_but_printParam_clicked();
        void setInits();
        void setParams();
	void showAlert(QModelIndex);
};
#endif




